//actions.js ：暴露给用户使用，借此触发mutations中的方法，保存数据（可执行异步操作）

export const openGoodsSelectorPage = ({ commit }, payload) => {
    commit('setGoodsSelectorPageVisible', true);
};
export const closeGoodsSelectorPage = ({ commit }, payload) => {
    commit('setGoodsSelectorPageVisible', false);
};

export const setConHeightForMain = ({ commit }) => {
    let _height=window.innerHeight  - 40 +'px';
    commit('setConHeight', _height);
};

export const setSessionUser = ({ commit },payload) => {
    commit('setSessionUser', payload);
};

export const setMenuList = ({ commit },payload) => {
    commit('setMenuList', payload);
};
export const setMicroConfigList = ({ commit },payload) => {
    commit('setMicroConfigList', payload);
};
export const setMicroConfigListByApp = ({ commit },payload) => {
    commit('setMicroConfigListByApp', payload);
};
export const setHomeMenu = ({ commit },payload) => {
    commit('setHomeMenu', payload);
};



